package com.mandao;

import com.mandao.config.SimpleFilter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;

/**
 * @author snail
 * @EnableZuulProxy 添加zuul代理注解
 */
@SpringBootApplication
@EnableZuulProxy
public class GatewayZuulApplication {

	/**
	 * 引入Zuul过滤器到容器中
	 */
	@Bean
	public SimpleFilter simpleFilter(){
		return new SimpleFilter() ;
	}

	public static void main(String[] args) {
		SpringApplication.run(GatewayZuulApplication.class, args);
	}

}
